package com.wkck.mapper;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wkck.domain.Job_join;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: CK
 * @Date: 2023/12/17/20:47
 * @Description:
 */
public interface JobJoinMapper extends BaseMapper<Job_join> {

    @Insert("insert into job_join (principal,phone,email,company,start_time,job_id) " +
            "values (#{principal},#{phone},#{email},#{company},#{start_time},#{job_id})")
    void insertJoin(Job_join jobJoin);

    boolean removeCareerByIds(List<Integer> ids);

    @Select("select job_id from job_join where company = #{company}")
    List<Integer> getJobIds(String company);
}
